package com.example.userservice.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Test")
public class TestController {

    @Value("${test.message}")
    private String testMessage;
    @GetMapping("/test")
    public String test() {
        System.out.println("test");
        return testMessage;
    }
}
